package org.csu.hospital.service;

import org.csu.hospital.domain.SignOn;
import org.csu.hospital.persistence.AccountMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@MapperScan("org.csu.hospital.persistence")
public class accountService {

    @Autowired
    private AccountMapper accountMapper;

    //通过用户名和密码获取用户信息
    public SignOn getAccountByUsernameAndPassword(SignOn signOn)
    {
        return accountMapper.getUserByPasswordAndUsername(signOn);
    }
}
